<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: 呆
  Date: 2017/10/3
  Time: 10:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@include file="common.jsp" %>
    <script type="text/javascript" src="/static/views/formalClient.js"></script>
</head>
<body>
<table id="client_datagrid"></table>
<div id="datagrid_toolar">
    <div>
        <a id="client_add" class="easyui-linkbutton" data-options="iconCls:'icon-add', plain:true"
           data-cmd="client_add">新增</a>
        <a id="client_edit" class="easyui-linkbutton" data-options="iconCls:'icon-edit', plain:true"
           data-cmd="client_edit">编辑</a>
        <a id="client_reload" class="easyui-linkbutton" data-options="iconCls:'icon-reload', plain:true"
           data-cmd="client_reload">刷新</a>
        <a id="client_transfer" class="easyui-linkbutton" data-options="iconCls:'icon-back', plain:true"
           data-cmd="client_transfer">移交</a>
     
    </div>

    <div>
        <input id="searchbtn"/>
    </div>

</div>
<%--确认和取消的按钮--%>
<div id="dialog_check">
    <a id="client_save" class="easyui-linkbutton" data-options="iconCls:'icon-save', plain:true" data-cmd="client_save">保存</a>
    <a id="client_cancel" class="easyui-linkbutton" data-options="iconCls:'icon-cancel', plain:true"
       data-cmd="client_cancel">取消</a>
</div>


<%--移交客户页面界面--%>
<div id="transfer_dialog">
    <form id="transfer_form" method="post">
        <input type="hidden" name="id">
        <input type="hidden" name="status">
        <input type="hidden" name="princiUser">
        <div align="center" style="margin-top: 10px;">
            <div>
                <input type="text" name="realName" class="easyui-textbox"
                       data-options="label:'潜在客户:',labelPosition:'top', width:150">
            </div>

            <div>
                <input id="inputId" class="easyui-textbox"
                       data-options="label:'当前负责人:',labelPosition:'top', width:150 ,readonly:true,">
            </div>
            <div>
                <select name="managerId" class="easyui-combobox"
                        data-options="
						 width:150,
						 label:'移交后负责人:',
						 labelPosition:'top',
						 valueField:'id',
						 textField:'name',
						 url:'/employee/selectListForEmployeeForm'
						">
                </select>
            </div>
            <div>
                <input type="text" name="reason" class="easyui-textbox"
                       data-options="label:'移交原因:',labelPosition:'top', width:150">
            </div>

        </div>
    </form>
</div>
<%--确定移交按钮--%>
<div id="transferbt">
    <a id="client_ensure" class="easyui-linkbutton" data-options="iconCls:'icon-ok', plain:true"
       data-cmd="client_ensure">确定移交</a>
    <a id="client_cancel1" class="easyui-linkbutton" data-options="iconCls:'icon-cancel', plain:true"
       data-cmd="client_cancel1">取消</a>
</div>
<%--新增界面--%>
<div id="dialog_edit">
    <form id="client_form" method="post">
        <table cellspacing="10" width="100%">
            <input type="hidden" name="id">
            <tr height="35px">
                <td width="33%">
                    <div>
                        <label class="label-top">用&nbsp;&nbsp;户&nbsp;&nbsp;名：</label>
                        <input name="username" class="easyui-validatebox easyui-textbox"
                               prompt="请输入用户名"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">真实姓名：</label>
                        <input name="realName" class="easyui-validatebox easyui-textbox" prompt="请输入真实姓名"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td width="33%">

                </td>
            </tr>
            <tr height="35px">
                <td width="33%">
                    <div>
                        <label class="label-top">邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：</label>
                        <input name="email" style="width:50%" class="easyui-validatebox easyui-textbox"
                               prompt="请输入邮箱"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">手机号码：</label>
                        <input name="tel" class="easyui-validatebox easyui-textbox" prompt="请输入手机号码"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">q&nbsp;&nbsp;&nbsp;&nbsp;q：</label>
                        <input name="qq" class="easyui-validatebox easyui-textbox" prompt="请输入qq号码"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
            </tr>
            <tr height="35px">
                <td>
                    <div>
                        <label class="label-top">证件类型：</label>
                        <select style="width: 100px;" id="ec1" class="easyui-combobox"
                                data-options="editable:false,panelHeight:null , valueField:'id',textField:'name'"
                                name="idCardType">
                            <option value="-1">请选择</option>
                            <option value="0">护照</option>
                            <option value="1">身份证</option>
                        </select>
                    </div>

                </td>
                <td>
                    <div>
                        <label class="label-top">证件号码：</label>
                        <input name="idCardNumber" class="easyui-validatebox easyui-textbox" prompt="请输入qq号码"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td>

                </td>
            </tr>
            <tr height="35px">
                <td colspan="3">
                    <div>
                        <label class="label-top">详细地址：</label>
                        <input name="address" style="width: 400px;" class="easyui-textbox"
                        >
                    </div>
                </td>

            </tr>
            <tr height="35px">

                <td width="33%">
                    <div>
                        <label class="label-top">是否是投保人：</label>
                        <select style="width: 100px;" class="easyui-combobox"
                                data-options="editable:false,panelHeight:null, valueField:'id',textField:'name',"
                                name="applicant">
                            <option value="-1">请选择</option>
                            <option value="0">是</option>
                            <option value="1">否</option>
                        </select>
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">民&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;族：</label>
                        <input name="nation" class=" easyui-textbox"
                        >
                    </div>
                </td>
            </tr>
            <tr height="35px">
                <td width="33%">
                    <div>
                        <label class="label-top">婚&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;姻：</label>
                        <select style="width: 100px;" class="easyui-combobox"
                                data-options="editable:false,panelHeight:null , valueField:'id',textField:'name'"
                                name="marriage">
                            <option value="-1">请选择</option>
                            <option value="0">已婚</option>
                            <option value="1">未婚</option>
                            <option value="2">不明</option>
                        </select>
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">籍&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贯：</label>
                        <input name="nativePlace" class="easyui-validatebox easyui-textbox" prompt="请输入籍贯"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>

            </tr>

            <tr height="35px">
                <td id="tdId" width="33%">
                    <select name="princiUser" class="easyui-combobox"
                            data-options="
                             required:true,
                             prompt:'请选择负责人',
						    width:200,
						 label:'负责人:',
						 labelPosition:'left',
						 valueField:'id',
						 textField:'name',
						 url:'/employee/selectListForEmployeeForm'
						">
                    </select>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">客户来源：</label>
                        <input name="clientSource" class="easyui-validatebox easyui-textbox" prompt="请输入来源"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">收入水平：</label>
                        <input name="income" class=" easyui-textbox"
                        >
                    </div>
                </td>
            </tr>
            <tr height="35px">
                <td width="33%">
                    <div>
                        <label class="label-top">客户代码：</label>
                        <input name="clientNumber" class="easyui-validatebox easyui-textbox" prompt="请输入用户名"
                               data-options="required:true,validType:'length[1,10]'">
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">客户级别：</label>
                        <select style="width: 100px;" class="easyui-combobox"
                                data-options="editable:false,panelHeight:null , valueField:'id',textField:'name'"
                                name="clientLevel">
                            <option value="-1">请选择</option>
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                        </select>
                    </div>
                </td>
                <td width="33%">
                    <div>
                        <label class="label-top">客户类型：</label>
                        <select style="width: 100px;" class="easyui-combobox"
                                data-options="editable:false,panelHeight:null , valueField:'id',textField:'name'"
                                name="clientType">
                            <option value="-1">请选择</option>
                            <option value="1">个人</option>
                            <option value="2">法人</option>

                        </select>
                    </div>
                </td>
            </tr>

        </table>
    </form>

</div>
</body>
</html>
